package com.second.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class News implements Serializable{
	private int nid;
	private  String ntitle;
	private String ntext;
	private Date ntime;
	private String realTime;
	private int uid;
	
	public String getRealTime(){
		SimpleDateFormat date=new SimpleDateFormat("yyyy-MM-dd HH:ss:dd");
	if(this.ntime!=null){
		return date.format(ntime);
		}else{
			return "";
		}
		
	}
	public int getNid() {
		return nid;
	}
	public void setNid(int nid) {
		this.nid = nid;
	}
	public String getNtitle() {
		return ntitle;
	}
	public void setNtitle(String ntitle) {
		this.ntitle = ntitle;
	}
	public String getNtext() {
		return ntext;
	}
	public void setNtext(String ntext) {
		this.ntext = ntext;
	}
	public Date getNtime() {
		return ntime;
	}
	public void setNtime(Date ntime) {
		this.ntime = ntime;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	

}
